package com.itheima.Jiuye02Demo2;

public class Testanima {
    public static void main(String[] args) {
        breeder b = new breeder();
        dog d = new dog();
        b.breed(d);
        b.swimming(d);
        sheep s = new sheep();
        b.breed(s);
        frog f = new frog();
        b.breed(f);
        b.swimming(f);
    }
}
